<template>
  <div>
      <div class="logo"></div>
  </div>
</template>

<script>
import card from '@/components/card'

export default {
  data () {
    return {

    }
  },
  components: {
    card
  },

  methods: {
    bindViewTap () {
      const url = '../logs/main'
      wx.navigateTo({ url })
    },
    getUserInfo () {
      // 调用登录接口
      wx.login({
        success: () => {
          wx.getUserInfo({
            success: (res) => {
              this.userInfo = res.userInfo
            }
          })
        }
      })
    },
    clickHandle (msg, ev) {
      console.log('clickHandle:', msg, ev)
    }
  },

  created () {
    // 调用应用实例的方法获取全局数据
    this.getUserInfo()
  }
}
</script>

<style scoped>
.logo{
  width: 100wh;
  height: 50px;
  background:#1d9fdd url("https://s1.ax1x.com/2018/11/13/iXG6Bt.jpg") no-repeat center / 100%;
}
</style>
